package com.lt.model;

import java.util.List;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 系统操作人员
 */
@Document
public class Human {

	@Id
	private String id;

	private String name;

	private Integer source;

	private String sex;

	private String dept;

	@DBRef(lazy = false)
	private List<Child> childs;

	private List<Integer> hasNum;

	public Human(String id) {
		super();
		this.id = id;
	}

	public Human() {
		super();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getDept() {
		return dept;
	}

	public void setDept(String dept) {
		this.dept = dept;
	}

	public Integer getSource() {
		return source;
	}

	public void setSource(Integer source) {
		this.source = source;
	}

	public List<Child> getChilds() {
		return childs;
	}

	public void setChilds(List<Child> childs) {
		this.childs = childs;
	}

	public List<Integer> getHasNum() {
		return hasNum;
	}

	public void setHasNum(List<Integer> hasNum) {
		this.hasNum = hasNum;
	}

}